Wiki : ./Security/Windows/Languages/C/Running commands.md

Sometimes the need for a quick and dirty executable is there that just should execute something small.

We can use the system function from stdlib.hfor that purpose.

#include <stdlib.h>

void main() {
	system("whoami");
}

Follow Cross-Compilation for instructions to compile it on GNU/Linux.